//This file is for remote-administration type procs so it's easier for me to find them
//It also has other things, such as the remote text files
//Code to send data to maz.byond.com
proc
	Report()
		var/Addr = MAZ_SERVER_ADDRESS
		Addr += "?"
		Addr += "action=update;" //We're updating, not shutting down
		Addr += "players="
		for(var/mob/pc/P in world)
			Addr += "[P]([P.ckey]),"
		Addr += ";"
		Addr += "motd=[motd];"
		world.Export(Addr)


	ReportShutdown()
		var/Addr = MAZ_SERVER_ADDRESS
		Addr +="?action=shutdown;"
		world.Export(Addr)


	SetMOTD(themotd as message)
		motd = themotd

/*
var/global/Waiting_For_Content

proc/DownloadContent()
	if(RC_Request_Content(MAZ_SERVER_ADDRESS, "gametext") == "data=gametext")
		Waiting_For_Content = 1

proc/LoadTextFromSave(file)
	world << "Content has been successfully received."
	//Need to devise some way to load all the text from a savefile

world/Topic(T,Addr,Master,Key)
	//Do other, normal stuff here
	if(Waiting_For_Content)
		var/file = RC_Client(T,Addr,Master,Key)
		if(file)
			Waiting_For_Content = 0
			LoadTextFromSave(file)
	//Or do other normal stuff here
	..()
*/